package com.zbs.framework.security.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author: Zbs
 * @createTime: 2021/2/25 15:33
 */
@AllArgsConstructor
@Accessors(chain = true)
@Data
public class LoginUserInfo  implements Serializable {

    private static final long serialVersionUID = -2977070263248849964L;

    private Long id;
    private String username;
    private String token;
    private List<String> permissions;
    private boolean isEnabled;
    private Character userType;
    private Map<String,Object> otherInfo;

    public LoginUserInfo() {
    }

    public static LoginUserInfo build(){
        return new LoginUserInfo();
    }

}
